<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%><%@ taglib
	uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/demo.css" />
<title>发送post请求方式，让用户去一键支付的网页支付页面</title>
</head>

<body onload="load()">
	发送post请求方式，让用户去一键支付的网页支付页面。本页面加载完毕后自动提交post请求
	
	<form id="payform" action=${mobilePayUrl } method="post">
		<input type="hidden" id="merchantaccount" name="merchantaccount" value=${merchantaccount } /> 
		<input type="hidden" id="data" name="data" value=${data } /> 
		<input type="hidden" id="encryptkey" name="encryptkey" value=${encryptkey } /> 
	</form>
</body>

<script type="text/javascript">
	//页面加载完毕，以后以post方式提交表单，让用户进行网页支付
	function load() {
		
		document.getElementById("payform").submit()

	};
</script>

</html>